#!/bin/bash

F=$(grep "Total Failures:" $1 | awk '{print $3}')
if [ ! -n "$F" ]; then
	echo "ltp test failed!"
	return 1
fi
if [ $F -lt 400 ]; then
	echo "ltp test passed"
	echo
else
	echo "ltp test failed!"

	#This is important. It tells host this test failed
	echo "csky-ci tests failed: ltp failed"
	return 1
fi
